import {Base} from "../../utils/base.js";

class Product extends Base{
   constructor(){
      super();
   }
   getDetailInfo(id, callback){
      var params = {
         url:"product/" +　id,
         scallback: function(res){
            callback&&callback(res);
         }
      }
      this.request(params);
   }
   // 获取点击事件中的data-xxx的数据
   getDataSet(event, key) {
      return event.currentTarget.dataset[key];
   }
}
export {Product};